@import "base.less";

.ui-popup-modal .ui-dialog {
  .round(20px);
}

/*!
 * ui-dialog.css
 * Date: 2014-07-03
 * https://github.com/aui/artDialog
 * (c) 2009-2014 TangBin, http://www.planeArt.cn
 *
 * This is licensed under the GNU LGPL, version 2.1 or later.
 * For details, see: http://www.gnu.org/licenses/lgpl-2.1.html
 */
.ui-dialog {
  *zoom: 1;
  _float: left;
  position: relative;
  background: #fff !important;
  background-color: #fff;
  border: 1px solid #999;
  border-radius: 6px;
  outline: 0;
  background-clip: padding-box;
  font-size: 14px;
  line-height: 1.428571429;
  color: #575757;
  opacity: 0;
  -webkit-transition: -webkit-transform .5s ease, opacity .5s ease;
  transition: transform .5s ease, opacity .5s ease;
}

.ui-dialog-shake {
  animation-duration: .13s;
  -webkit-animation-duration: .13s;
  animation-fill-mode: both;
  -webkit-animation-fill-mode: both;
  animation-iteration-count: 1;
  -webkit-animation-iteration-count: 1;
  animation-name: ui-dialog-shake;
  -webkit-animation-name: ui-dialog-shake;
  animation-timing-function: ease;
  -webkit-animation-timing-function: ease;
  transform-origin: center bottom;
  -webkit-transform-origin: center bottom;
}

.ui-dialog-sup-close {
  .normal-link();
  display: none;
  color: rgba(255, 255, 255, .7);
  text-align: center;
  line-height: 30px;
  .absolute(auto, -50px, 0, auto, 30px, 30px, 50);
  .iconfont {
    font-size: 30px;
  }
  &:hover {
    color: rgba(255, 255, 255, 1);;
  }
}

@keyframes ui-dialog-shake {
  0% {
    margin-left: 4px;
    transform: rotate(4deg);
    -webkit-transform: rotate(4deg);
  }
  15% {
    margin-left: 8px;
    transform: rotate(8deg);
    -webkit-transform: rotate(8deg);
  }
  30% {
    margin-left: 4px;
    transform: rotate(4deg);
    -webkit-transform: rotate(4deg);
  }
  45% {
    margin-left: 0px;
    transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
  }
  60% {
    margin-left: -4px;
    transform: rotate(-4deg);
    -webkit-transform: rotate(-4deg);
  }
  75% {
    margin-left: -8px;
    transform: rotate(-8deg);
    -webkit-transform: rotate(-8deg);
  }
  90% {
    margin-left: -4px;
    transform: rotate(-4deg);
    -webkit-transform: rotate(-4deg);
  }
  100% {
    margin-left: 0;
    transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
  }
}

@-webkit-keyframes ui-dialog-shake {
  0% {
    margin-left: 4px;
    transform: rotate(4deg);
    -webkit-transform: rotate(4deg);
  }
  15% {
    margin-left: 8px;
    transform: rotate(8deg);
    -webkit-transform: rotate(8deg);
  }
  30% {
    margin-left: 4px;
    transform: rotate(4deg);
    -webkit-transform: rotate(4deg);
  }
  45% {
    margin-left: 0px;
    transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
  }
  60% {
    margin-left: -4px;
    transform: rotate(-4deg);
    -webkit-transform: rotate(-4deg);
  }
  75% {
    margin-left: -8px;
    transform: rotate(-8deg);
    -webkit-transform: rotate(-8deg);
  }
  90% {
    margin-left: -4px;
    transform: rotate(-4deg);
    -webkit-transform: rotate(-4deg);
  }
  100% {
    margin-left: 0;
    transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
  }
}

.ui-popup-show .ui-dialog {
  opacity: 1;
  background: #fff;
}

.ui-popup-focus .ui-dialog {
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.ui-popup-modal {
  max-width: 90%;
}

.ui-popup-modal .ui-dialog {
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3), 0 0 150px rgba(255, 255, 255, .3);

}

.ui-dialog-grid {
  width: 100%;
  margin: 0;
  border: 0 none;
  border-collapse: collapse;
  border-spacing: 0;
}

.ui-dialog-header,
.ui-dialog-body,
.ui-dialog-footer {
  padding: 0;
  border: 0 none;
  text-align: left;
  background: transparent;
}

.ui-dialog-header {
  white-space: nowrap;
  border-bottom: 1px solid #E5E5E5;
}

.ui-dialog-close {
  position: relative;
  _position: absolute;
  float: right;
  top: 13px;
  right: 13px;
  _height: 26px;
  padding: 0 4px;
  font-size: 21px;
  font-weight: bold;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #FFF;
  opacity: .2;
  filter: alpha(opacity=20);
  cursor: pointer;
  background: transparent;
  _background: #FFF;
  border: 0;
  -webkit-appearance: none;
}

.ui-dialog-close:hover,
.ui-dialog-close:focus {
  color: #000000;
  text-decoration: none;
  cursor: pointer;
  outline: 0;
  opacity: 0.5;
  filter: alpha(opacity=50);
}

.ui-dialog-title {
  margin: 0;
  line-height: 1.428571429;
  min-height: 16.428571429px;
  padding: 15px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: bold;
  cursor: default;
}

.ui-dialog-body {
  padding: 20px;
  text-align: center;
}

.ui-dialog-content {
  display: block;
  position: relative;
  vertical-align: middle;
  *zoom: 1;
  *display: inline;
  text-align: left;
}

.ui-dialog-footer {
  padding: 0 20px 20px 20px;
}

.ui-dialog-statusbar {
  float: left;
  margin-right: 20px;
  padding: 6px 0;
  line-height: 1.428571429;
  font-size: 14px;
  color: #888;
  white-space: nowrap;
}

.ui-dialog-statusbar label:hover {
  color: #333;
}

.ui-dialog-statusbar input,
.ui-dialog-statusbar .label {
  vertical-align: middle;
}

.ui-dialog-button {
  white-space: nowrap;
  text-align: center;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-top: 15px;
  button {
    .button-size(6px, 20px, 18px, 30px, 40px);
    .button-variant(#333, #fff, @font-border);
    vertical-align: top;
    outline: none;
    width: 160px;
    font-family: "Oswald";
    word-spacing: 5px;
    text-transform: uppercase;
    &:focus{
      outline: none;
    }
    &.ui-dialog-autofocus {
      .button-variant(#fff, #20c2b0, #20c2b0);
    }
    & + button {
      margin-left: 20px;
    }
  }
  &.ui-dialog-single-button {
    button {
      width: 70%;
    }
  }
}


.ui-popup-top-left .ui-dialog,
.ui-popup-top .ui-dialog,
.ui-popup-top-right .ui-dialog {
  top: -8px;
}

.ui-popup-bottom-left .ui-dialog,
.ui-popup-bottom .ui-dialog,
.ui-popup-bottom-right .ui-dialog {
  top: 8px;
}

.ui-popup-left-top .ui-dialog,
.ui-popup-left .ui-dialog,
.ui-popup-left-bottom .ui-dialog {
  left: -8px;
}

.ui-popup-right-top .ui-dialog,
.ui-popup-right .ui-dialog,
.ui-popup-right-bottom .ui-dialog {
  left: 8px;
}

.ui-dialog-arrow-a,
.ui-dialog-arrow-b {
  position: absolute;
  display: none;
  width: 0;
  height: 0;
  overflow: hidden;
  _color: #FF3FFF;
  _filter: chroma(color=#FF3FFF);
  border: 8px dashed transparent;
}

.ui-popup-follow .ui-dialog-arrow-a,
.ui-popup-follow .ui-dialog-arrow-b {
  display: block;
}

.ui-popup-top-left .ui-dialog-arrow-a,
.ui-popup-top .ui-dialog-arrow-a,
.ui-popup-top-right .ui-dialog-arrow-a {
  bottom: -16px;
  border-top: 8px solid #7C7C7C;
}

.ui-popup-top-left .ui-dialog-arrow-b,
.ui-popup-top .ui-dialog-arrow-b,
.ui-popup-top-right .ui-dialog-arrow-b {
  bottom: -15px;
  border-top: 8px solid #fff;
}

.ui-popup-top-left .ui-dialog-arrow-a,
.ui-popup-top-left .ui-dialog-arrow-b {
  left: 15px;
}

.ui-popup-top .ui-dialog-arrow-a,
.ui-popup-top .ui-dialog-arrow-b {
  left: 50%;
  margin-left: -8px;
}

.ui-popup-top-right .ui-dialog-arrow-a,
.ui-popup-top-right .ui-dialog-arrow-b {
  right: 15px;
}

.ui-popup-bottom-left .ui-dialog-arrow-a,
.ui-popup-bottom .ui-dialog-arrow-a,
.ui-popup-bottom-right .ui-dialog-arrow-a {
  top: -16px;
  border-bottom: 8px solid #7C7C7C;
}

.ui-popup-bottom-left .ui-dialog-arrow-b,
.ui-popup-bottom .ui-dialog-arrow-b,
.ui-popup-bottom-right .ui-dialog-arrow-b {
  top: -15px;
  border-bottom: 8px solid #fff;
}

.ui-popup-bottom-left .ui-dialog-arrow-a,
.ui-popup-bottom-left .ui-dialog-arrow-b {
  left: 15px;
}

.ui-popup-bottom .ui-dialog-arrow-a,
.ui-popup-bottom .ui-dialog-arrow-b {
  margin-left: -8px;
  left: 50%;
}

.ui-popup-bottom-right .ui-dialog-arrow-a,
.ui-popup-bottom-right .ui-dialog-arrow-b {
  right: 15px;
}

.ui-popup-left-top .ui-dialog-arrow-a,
.ui-popup-left .ui-dialog-arrow-a,
.ui-popup-left-bottom .ui-dialog-arrow-a {
  right: -16px;
  border-left: 8px solid #7C7C7C;
}

.ui-popup-left-top .ui-dialog-arrow-b,
.ui-popup-left .ui-dialog-arrow-b,
.ui-popup-left-bottom .ui-dialog-arrow-b {
  right: -15px;
  border-left: 8px solid #fff;
}

.ui-popup-left-top .ui-dialog-arrow-a,
.ui-popup-left-top .ui-dialog-arrow-b {
  top: 15px;
}

.ui-popup-left .ui-dialog-arrow-a,
.ui-popup-left .ui-dialog-arrow-b {
  margin-top: -8px;
  top: 50%;
}

.ui-popup-left-bottom .ui-dialog-arrow-a,
.ui-popup-left-bottom .ui-dialog-arrow-b {
  bottom: 15px;
}

.ui-popup-right-top .ui-dialog-arrow-a,
.ui-popup-right .ui-dialog-arrow-a,
.ui-popup-right-bottom .ui-dialog-arrow-a {
  left: -16px;
  border-right: 8px solid #7C7C7C;
}

.ui-popup-right-top .ui-dialog-arrow-b,
.ui-popup-right .ui-dialog-arrow-b,
.ui-popup-right-bottom .ui-dialog-arrow-b {
  left: -15px;
  border-right: 8px solid #fff;
}

.ui-popup-right-top .ui-dialog-arrow-a,
.ui-popup-right-top .ui-dialog-arrow-b {
  top: 15px;
}

.ui-popup-right .ui-dialog-arrow-a,
.ui-popup-right .ui-dialog-arrow-b {
  margin-top: -8px;
  top: 50%;
}

.ui-popup-right-bottom .ui-dialog-arrow-a,
.ui-popup-right-bottom .ui-dialog-arrow-b {
  bottom: 15px;
}


@-webkit-keyframes ui-dialog-loading {
  0% {
    transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
  }
}

@keyframes ui-dialog-loading {
  0% {
    transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
  }
}

.ui-dialog-loading {
  vertical-align: middle;
  position: relative;
  display: block;
  *zoom: 1;
  *display: inline;
  overflow: hidden;
  width: 32px;
  height: 32px;
  top: 50%;
  margin: -16px auto 0 auto;
  font-size: 0;
  text-indent: -999em;
  color: #666;
}

.ui-dialog-loading {
  width: 100% \9;
  text-indent: 0 \9;
  line-height: 32px \9;
  text-align: center \9;
  font-size: 12px \9;
}

.ui-dialog-loading::after {
  position: absolute;
  content: '';
  width: 3px;
  height: 3px;
  margin: 14.5px 0 0 14.5px;
  border-radius: 100%;
  box-shadow: 0 -10px 0 1px #ccc, 10px 0px #ccc, 0 10px #ccc, -10px 0 #ccc, -7px -7px 0 0.5px #ccc, 7px -7px 0 1.5px #ccc, 7px 7px #ccc, -7px 7px #ccc;
  transform: rotate(360deg);
  -webkit-transform: rotate(360deg);
  animation: ui-dialog-loading 1.5s infinite linear;
  -webkit-animation: ui-dialog-loading 1.5s infinite linear;
  display: none \9;
}

.ui-dialog-custom {
  position: relative;
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: 18px;
  font-weight: normal;
  min-width: 420px;
  padding: 0 30px;
  h4 {
    margin: 0;
    font-size: 1.4rem;
  }
  p.text-muted {
    font-size: 1rem;
    margin-top: 8px;
  }
}

.ui-dialog-icon {
  display: block;
  margin: 0 auto;
  padding: 10px 0;
  padding-bottom: 20px;
  .ud-icon {
    display: block;
    width: 90px;
    height: 90px;
    margin: 0 auto;
    position: relative;
    .background-attr(center 0, 100% auto, no-repeat);
    .background-image('icons/icon-dialog.png');
    &.ud-logo {
      .background-attr(center center, contain, no-repeat);
      .background-image('logo.png');
    }
    &.ud-confirm {
      background-position: center 0;
    }
    &.ud-success {
      background-position: center -90px;
    }
    &.ud-warning {
      background-position: center -180px;
    }
    &.ud-error {
      background-position: center -270px;
    }
  }
}
.nightNess {
  .ui-dialog-icon {
    .ud-icon {
      &.ud-logo {
        .background-image('logo-night.png');
      }
    }
  }
}
